package <%= utilsPackageName %>;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* baseController
*
* @author 代码生成器@zhangQ
* @date <%= formatTime() %>
*/
public class BaseController {
    protected HttpServletRequest request;

    protected HttpServletResponse response;


    /**
    * 表示请求该类的每个Action前都会首先执行它，也可以将一些准备数据的操作放置在该方法里面。
    *
    * @param request
    * @param response
    */
    @ModelAttribute
    public void setReqAndRes(HttpServletRequest request, HttpServletResponse response) {
        this.request = request;
        this.response = response;
        ////从缓存中取出权限
        //        selfUserInfo = (Ksuser)session.getAttribute(Constant.USER_SESSION_ID);
    }
}
